package com.yzs.controller.front;

import com.yzs.common.bean.R;
import com.yzs.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("/admin")
public class AdminFrontController {
    @Autowired
    IAdminService as;
    @RequestMapping("/getHouseAdminById")
    public R getAdminById(@RequestParam Integer id){
        return as.getHouseAdminById(id);
    }

}
